package com.yjq.blog.article.dao;

import com.yjq.blog.article.dto.ArticleSearchDTO;
import com.yjq.blog.article.entity.Article;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArticleDao {

    List<Article> listArticle(ArticleSearchDTO searchDTO);

    int addArticle(Article article);

    Article getArticleById(Integer id);

    int updateArticle(Article article);

}